-- GENERATED SPELL FOR [Dragon Turtle] --


function spell0_22885(pUnit, Event) --@Shell Shield,Self--
pUnit:FullCastSpellOnTarget(40087,pUnit)
pUnit:RegisterEvent('Sorts_22885', 12265, 1)
end

function spell1_22885(pUnit, Event) --@Water Spit,n/a--
pUnit:FullCastSpellOnTarget(40086,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22885', 2500, 1)
end

function Sorts_22885(pUnit, Event)
local choix_sorts_22885 = math.random(0, 1)
if choix_sorts_22885 == 0 then
pUnit:RegisterEvent('spell0_22885', 1, 1)
end
if choix_sorts_22885 == 1 then
pUnit:RegisterEvent('spell1_22885', 1, 1)
end
end

function mob22885_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22885', math.random(1500, 3000), 1)
end

function mob22885_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22885_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22885_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22885, 1, 'mob22885_Action')
RegisterUnitEvent(22885, 2, 'mob22885_Leave')
RegisterUnitEvent(22885, 3, 'mob22885_Kill')
RegisterUnitEvent(22885, 4, 'mob22885_Die')
